package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.AbilityassessmentMentalityMapper;
import com.ruoyi.merchant.domain.AbilityassessmentMentality;
import com.ruoyi.merchant.service.IAbilityassessmentMentalityService;

/**
 * 能力评估-精神状态Service业务层处理
 * 
 * @author chengxin.ju
 * @date 2023-12-24
 */
@Service
public class AbilityassessmentMentalityServiceImpl implements IAbilityassessmentMentalityService 
{
    @Autowired
    private AbilityassessmentMentalityMapper abilityassessmentMentalityMapper;

    /**
     * 查询能力评估-精神状态
     * 
     * @param ID 能力评估-精神状态主键
     * @return 能力评估-精神状态
     */
    @Override
    public AbilityassessmentMentality selectAbilityassessmentMentalityByID(String ID)
    {
        return abilityassessmentMentalityMapper.selectAbilityassessmentMentalityByID(ID);
    }

    /**
     * 查询能力评估-精神状态列表
     * 
     * @param abilityassessmentMentality 能力评估-精神状态
     * @return 能力评估-精神状态
     */
    @Override
    public List<AbilityassessmentMentality> selectAbilityassessmentMentalityList(AbilityassessmentMentality abilityassessmentMentality)
    {
        return abilityassessmentMentalityMapper.selectAbilityassessmentMentalityList(abilityassessmentMentality);
    }

    /**
     * 新增能力评估-精神状态
     * 
     * @param abilityassessmentMentality 能力评估-精神状态
     * @return 结果
     */
    @Override
    public int insertAbilityassessmentMentality(AbilityassessmentMentality abilityassessmentMentality)
    {
        return abilityassessmentMentalityMapper.insertAbilityassessmentMentality(abilityassessmentMentality);
    }

    /**
     * 修改能力评估-精神状态
     * 
     * @param abilityassessmentMentality 能力评估-精神状态
     * @return 结果
     */
    @Override
    public int updateAbilityassessmentMentality(AbilityassessmentMentality abilityassessmentMentality)
    {
        return abilityassessmentMentalityMapper.updateAbilityassessmentMentality(abilityassessmentMentality);
    }

    /**
     * 批量删除能力评估-精神状态
     * 
     * @param IDs 需要删除的能力评估-精神状态主键
     * @return 结果
     */
    @Override
    public int deleteAbilityassessmentMentalityByIDs(String[] IDs)
    {
        return abilityassessmentMentalityMapper.deleteAbilityassessmentMentalityByIDs(IDs);
    }

    /**
     * 删除能力评估-精神状态信息
     * 
     * @param ID 能力评估-精神状态主键
     * @return 结果
     */
    @Override
    public int deleteAbilityassessmentMentalityByID(String ID)
    {
        return abilityassessmentMentalityMapper.deleteAbilityassessmentMentalityByID(ID);
    }

    @Override
    public AbilityassessmentMentality selectAbilityassessmentMentalityByBaseId(String baseId) {
        return abilityassessmentMentalityMapper.selectAbilityassessmentMentalityByBaseId(baseId);
    }
}
